function T = dynamic_g2_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g2_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 160);

T = bbeffectivedemandmatchirf_order3.dynamic_g1_tt(T, y, x, params, steady_state, it_);

T(84) = getPowerDeriv(y(30)*y(4),params(1),2);
T(85) = getPowerDeriv(y(36)*y(21),1-params(1),2);
T(86) = getPowerDeriv(y(10)*T(4)*T(5),T(6),2);
T(87) = getPowerDeriv(T(8),T(9),2);
T(88) = params(24)*(T(42)*T(5)*T(53)+T(4)*T(5)*T(5)*y(10)*T(53)*T(86));
T(89) = params(24)*(T(42)*T(4)*T(72)+T(4)*T(5)*y(10)*T(4)*T(72)*T(86));
T(90) = params(24)*T(42)*y(10)*T(4)*T(72)*T(87);
T(91) = getPowerDeriv(y(11),params(6),2);
T(92) = params(24)*(T(5)*y(10)*T(53)*T(5)*y(10)*T(53)*T(86)+T(42)*T(5)*y(10)*T(91));
T(93) = params(24)*(T(5)*y(10)*T(53)*y(10)*T(4)*T(72)*T(86)+T(42)*y(10)*T(53)*T(72));
T(94) = params(2)*getPowerDeriv(y(17),T(7),2);
T(95) = getPowerDeriv(1-y(21),1-params(6),2);
T(96) = (-((-((-((y(35)+params(15))*params(1)))*(y(20)+y(20))))/(y(20)*y(20)*y(20)*y(20))));
T(97) = (-1)/(y(4)*y(4));
T(98) = (-((-y(18))*(y(4)+y(4))))/(y(4)*y(4)*y(4)*y(4));
T(99) = (-((-y(10))*(y(1)+y(1))))/(y(1)*y(1)*y(1)*y(1));
T(100) = T(4)*T(5)*T(99);
T(101) = T(100)/T(16);
T(102) = getPowerDeriv(T(17),T(6),2);
T(103) = T(4)*T(5)*(-1)/(y(1)*y(1));
T(104) = T(103)/T(16);
T(105) = (-(T(39)*T(49)))/T(50);
T(106) = T(38)*T(5)*T(53)/T(16);
T(107) = (-(T(39)*T(69)))/T(50);
T(108) = T(38)*T(4)*T(72)/T(16);
T(109) = (-(T(46)*T(49)))/T(50);
T(110) = T(45)*T(5)*T(53)/T(16);
T(111) = (-(T(46)*T(69)))/T(50);
T(112) = T(45)*T(4)*T(72)/T(16);
T(113) = getPowerDeriv(y(2),params(6),2);
T(114) = T(15)*T(113);
T(115) = T(50)*T(50);
T(116) = (T(50)*(-(T(13)*T(114)))-(-(T(13)*T(49)))*(T(16)*T(49)+T(16)*T(49)))/T(115);
T(117) = params(2)*T(41)*T(51)*T(52)+params(2)*T(41)*T(51)*T(52)+T(19)*params(2)*(T(51)*T(51)*T(102)+T(41)*T(116));
T(118) = (-(T(49)*T(12)*T(5)*T(53)))/T(50);
T(119) = params(2)*(T(51)*T(55)*T(102)+T(41)*T(118));
T(120) = (-1)/(y(11)*y(11));
T(121) = T(16)*T(69)+T(16)*T(69);
T(122) = (T(50)*(-(T(13)*T(48)*T(68)))-(-(T(13)*T(49)))*T(121))/T(115);
T(123) = (-(T(49)*T(12)*T(4)*T(72)))/T(50);
T(124) = params(2)*(T(51)*T(73)*T(102)+T(41)*T(123));
T(125) = T(12)*T(5)*T(91)/T(16);
T(126) = params(2)*(T(55)*T(55)*T(102)+T(41)*T(125));
T(127) = (-((-y(2))*(y(11)+y(11))))/(y(11)*y(11)*y(11)*y(11));
T(128) = (-(T(12)*T(5)*T(53)*T(69)))/T(50);
T(129) = params(2)*(T(55)*T(70)*T(102)+T(41)*T(128));
T(130) = T(12)*T(53)*T(72)/T(16);
T(131) = params(2)*(T(55)*T(73)*T(102)+T(41)*T(130));
T(132) = (-((-T(20))*(y(3)+y(3))))/(y(3)*y(3)*y(3)*y(3));
T(133) = getPowerDeriv(T(21),1-T(7),2);
T(134) = T(59)*T(132)+T(58)*T(58)*T(133);
T(135) = (-T(77))/(y(3)*y(3));
T(136) = T(59)*T(135)+T(58)*T(78)*T(133);
T(137) = getPowerDeriv(1-y(5),1-params(6),2);
T(138) = T(14)*T(137);
T(139) = (T(50)*(-(T(13)*T(138)))-(-(T(13)*T(69)))*T(121))/T(115);
T(140) = (-(T(69)*T(12)*T(4)*T(72)))/T(50);
T(141) = params(2)*(T(70)*T(73)*T(102)+T(41)*T(140));
T(142) = params(2)*(T(73)*T(73)*T(102)+T(41)*T(12)*T(4)*T(95)/T(16));
T(143) = getPowerDeriv(y(32),1-params(9),2);
T(144) = T(78)*T(78)*T(133)+T(59)*T(143)/y(3);
T(145) = getPowerDeriv(y(44),(-1),2);
T(146) = y(47)*y(26)*T(145);
T(147) = (-((-y(35))*(y(8)+y(8))))/(y(8)*y(8)*y(8)*y(8));
T(148) = T(26)*T(147)-T(80)*T(80);
T(149) = (-1)/(y(19)*y(19));
T(150) = y(45)*(T(64)*params(8)*T(67)+params(8)*(T(28)-params(3))*T(149)+params(8)*T(64)*T(67)+T(28)*params(8)*T(149)-T(10)*(2*(T(28)-params(3))*T(149)+T(64)*2*T(67)));
T(151) = y(47)*T(150);
T(152) = (-((-y(42))*(y(19)+y(19))))/(y(19)*y(19)*y(19)*y(19));
T(153) = y(45)*(T(67)*params(8)*T(67)+params(8)*(T(28)-params(3))*T(152)+T(67)*params(8)*T(67)+T(28)*params(8)*T(152)-T(10)*(T(67)*2*T(67)+2*(T(28)-params(3))*T(152)));
T(154) = y(47)*T(153);
T(155) = T(74)*y(47)*params(7)*(T(32)-1)*T(82)+T(32)*y(47)*params(7)*T(74)*T(82);
T(156) = T(74)*y(47)*params(7)*(T(32)-1)*T(83)+T(32)*y(47)*params(7)*T(74)*T(83);
T(157) = (-((-y(50))*(y(35)+y(35))))/(y(35)*y(35)*y(35)*y(35));
T(158) = y(47)*params(7)*(T(32)-1)*T(157);
T(159) = T(32)*T(158);
T(160) = (-((-1)/(y(22)*y(22))));

end
